package com.ruoyi.safety.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.safety.mapper.PointTypeDictMapper;
import com.ruoyi.safety.domain.PointTypeDict;
import com.ruoyi.safety.service.IPointTypeDictService;

/**
 * 测点报警/异常类型字典Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-06
 */
@Service
public class PointTypeDictServiceImpl extends ServiceImpl<PointTypeDictMapper, PointTypeDict> implements IPointTypeDictService //修改
{
    @Autowired
    private PointTypeDictMapper pointTypeDictMapper;

    /**
     * 查询测点报警/异常类型字典
     * 
     * @param pointId 测点报警/异常类型字典主键
     * @return 测点报警/异常类型字典
     */
    @Override
    public PointTypeDict selectPointTypeDictByPointId(String pointId)
    {
        return pointTypeDictMapper.selectPointTypeDictByPointId(pointId);
    }

    /**
     * 查询测点报警/异常类型字典列表
     * 
     * @param pointTypeDict 测点报警/异常类型字典
     * @return 测点报警/异常类型字典
     */
    @Override
    public List<PointTypeDict> selectPointTypeDictList(PointTypeDict pointTypeDict)
    {
        return pointTypeDictMapper.selectPointTypeDictList(pointTypeDict);
    }

    /**
     * 新增测点报警/异常类型字典
     * 
     * @param pointTypeDict 测点报警/异常类型字典
     * @return 结果
     */
    @Override
    public int insertPointTypeDict(PointTypeDict pointTypeDict)
    {
        return pointTypeDictMapper.insertPointTypeDict(pointTypeDict);
    }

    /**
     * 修改测点报警/异常类型字典
     * 
     * @param pointTypeDict 测点报警/异常类型字典
     * @return 结果
     */
    @Override
    public int updatePointTypeDict(PointTypeDict pointTypeDict)
    {
        return pointTypeDictMapper.updatePointTypeDict(pointTypeDict);
    }

    /**
     * 批量删除测点报警/异常类型字典
     * 
     * @param pointIds 需要删除的测点报警/异常类型字典主键
     * @return 结果
     */
    @Override
    public int deletePointTypeDictByPointIds(String[] pointIds)
    {
        return pointTypeDictMapper.deletePointTypeDictByPointIds(pointIds);
    }

    /**
     * 删除测点报警/异常类型字典信息
     * 
     * @param pointId 测点报警/异常类型字典主键
     * @return 结果
     */
    @Override
    public int deletePointTypeDictByPointId(String pointId)
    {
        return pointTypeDictMapper.deletePointTypeDictByPointId(pointId);
    }

    @Override
    public PointTypeDict selectPointTypeDictByCode(String datum) {
        return pointTypeDictMapper.selectPointTypeDictByCode(datum);
    }
}
